//
//  MenuList_SecView.m
//  Cook Street
//
//  Created by dllo on 15/8/19.
//  Copyright (c) 2015年 LANOU. All rights reserved.
//

#import "MenuList_SecView.h"
#define WIDTH ([UIScreen mainScreen].applicationFrame.size.width)
#define HEIGHT ([UIScreen mainScreen].applicationFrame.size.height)

@implementation MenuList_SecView




-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        self.backgroundView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
        
        
        
        
        
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 210 , WIDTH, 50)];
        self.titleLabel.font = [UIFont systemFontOfSize:20];
        [self.backgroundView addSubview:self.titleLabel];
   
        
        
        
        self.tagTitle = [[UILabel alloc]initWithFrame:CGRectMake(20, 210  + 50, 200, 30)];
        self.tagTitle.text = @"介绍";
        self.tagTitle.font = [UIFont systemFontOfSize:18];
        self.tagTitle.textColor = [UIColor colorWithRed:192./255. green:130./255. blue:80./255. alpha:1.];
        [self.backgroundView addSubview:self.tagTitle];
        
        
        
        
        self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 64, WIDTH, self.frame.size.height  - 64) style:UITableViewStylePlain];
        [self addSubview:self.tableView];
        self.tableView.tableHeaderView = self.backgroundView;
        self.tableView.separatorStyle = UITableViewCellSelectionStyleNone;
        
        
        
    
    }
    return self;
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
